package com.ardo.mapper;

import com.ardo.entity.mall.*;
import com.ardo.entity.query.ProductQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BaseMapper {


    Map<String, Object> getUser();

    List<Banner> queryBannerList();

    //查询首页宫格BOG接口
    List<IndexBox> queryIndexBox();

    List<Category> queryCategoryList();

    Category queryCategoryDetail(@Param("id")Integer id);

    List<Product> queryProductList(@Param("query") ProductQuery query);


    List<Map<String, Object>> queryParam(@Param("list")List<String> list);

    List<Pic> queryPicList(@Param("type")String type);
}
